package com.chiyi.bean;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @date 2021/5/13 17:11
 * 用户
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "t_user")
public class TUser extends Model<TUser> implements Serializable {


    private static final long serialVersionUID = -435785502808892051L;
    @TableId(value = "id")
    private Integer id;

    private String username;

    private String password;

    private String telephone;



    @Override
    protected Serializable pkVal() {
        return this.getId();
    }
}
